﻿<Window x:Class="Mengsk.ProxyDelivery.App.UI.Delivery.DeliveryQueryWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="物流信息查询" Height="600" Width="600" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <TextBlock FontSize="18" Text="查询结果由快递100提供 http://www.kuaidi100.com"/>
        <StackPanel Grid.Row="1" Orientation="Horizontal">
            <TextBlock Text="当前状态:" Margin="3" VerticalAlignment="Center" Width="130"/>
            <TextBlock Name="tbState" Text="" Margin="3" VerticalAlignment="Center" Width="60"/>
            <Button Name="btnRefresh" Content="刷新" Margin="3" VerticalAlignment="Center" Width="60" Click="btnRefresh_Click"/>
        </StackPanel>

        <DataGrid Grid.Row="2" Name="dgvItems" GridLinesVisibility="All" HeadersVisibility="Column" AutoGenerateColumns="False" IsReadOnly="True">
            <DataGrid.Columns>
                <DataGridTextColumn Header="时间 " Width="130" Binding="{Binding Time,Converter={StaticResource datetimeConverter}}"/>
                <DataGridTextColumn Header="流转信息" Width="*" Binding="{Binding Description}"/>
            </DataGrid.Columns>
        </DataGrid>
        
    </Grid>
</Window>
